package com.example.mobiledatapackage.config;

import io.swagger.v3.oas.models.OpenAPI;
import io.swagger.v3.oas.models.info.Info;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;


/**
 * 生成的 OpenAPI 文档信息，URL：`host:port/swagger-ui/index.html`
 */
@Configuration
public class OpenApiConfig {

    private Info info() {
        return new Info()
                .title("移动通信套餐推荐系统")
                .version("v0.1");
    }

    @Bean
    public OpenAPI springDocOpenApi() {
        return new OpenAPI().info(info());
    }
}
